import http from '../http'

const file = {
  relate: (data) => {
    return http('/api/file/relate', 'post', data)
  },
  getFileList({ id = '', relateId = '', relateType= '' }) {
    return http(`/api/file/getFileList?id=${id}&relateId=${relateId}&relateType=${relateType}`, 'get')
  }
}

export default file